package com.xpfirst;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.xpfirst.epub.EpubActivity;

public class AndroidReaderActivity extends Activity {
	private Button openEpubBt;
	private OnClickListener openEpubListener;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        setOnClickListener();
        openEpubBt = (Button)this.findViewById(R.id.openEpub);
        openEpubBt.setOnClickListener(openEpubListener);
        
		Intent intent = new Intent();
        intent.setClass(AndroidReaderActivity.this, EpubActivity.class);
        startActivity(intent);
    }
    public void setOnClickListener(){
        openEpubListener = new OnClickListener(){
    		public void onClick(View v) {
    			Intent intent = new Intent();
    	        intent.setClass(AndroidReaderActivity.this, EpubActivity.class);
    	        startActivity(intent);
    		}
        };
    }
}